import request from '@/utils/request'
// 查询全部入库商品
export function listAllGoodsInStorage() {
  return request({
    url: '/storage/goodsInStorage/listAll',
    method: 'get'
  })
}
// 查询商品入库列表
export function listGoodsInStorage(query) {
  return request({
    url: '/storage/goodsInStorage/pageList',
    method: 'get',
    params: query
  })
}

// 查询商品入库详细
export function getGoodsInStorage(id) {
  return request({
    url: '/storage/goodsInStorage/query/' + id,
    method: 'get'
  })
}

// 新增商品入库
export function addGoodsInStorage(data) {
  return request({
    url: '/storage/goodsInStorage/add',
    method: 'post',
    data: data
  })
}

// 修改商品入库
export function updateGoodsInStorage(data) {
  return request({
    url: '/storage/goodsInStorage/edit',
    method: 'put',
    data: data
  })
}

// 删除商品入库
export function delGoodsInStorage(ids) {
  return request({
    url: '/storage/goodsInStorage/remove/' + ids,
    method: 'delete'
  })
}

// 入库
export function updateInOfStorage(data) {
  return request({
    url: '/storage/goodsInStorage/updateInOfStorage',
    method: 'post',
    data
  })
}
